package com.cuit.qx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cuit.qx.bean.Threshold;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:wjd
 * @Description: 阈值管理
 * @date:Created in 10:10 2020/9/17
 * @Modified By:
 */
public interface ThresholdManagementService extends IService<Threshold> {

    public List<Threshold> getAllThresholdData(int pageNo, int pageSize);


    public int insertThreshold(Threshold threshold);

    // 根据id单条修改阈值信息
    int updateThresholdId(Threshold threshold);

    // 根据id批量修改阈值信息
    int updateThresholdList(List<Threshold> thresholds);

    // 根据条件查询阈值信息
    List<Threshold> getThreshold(Integer pageNo, Integer pageSize, String station, String stationName);

    // 根据阈值id删除站点信息
    int deleteThresholdById(String id);

    // 根据阈值id批量删除站点信息
    int deleteThresholdByIds(String ids);

    int getCount(String station, String stationName);

    List<Threshold> getByState();
    //批量修改阈值元素值
    Boolean updateBatchByElement(String ids, String wind, String tem, String rain, String press, String hum);
}
